import { defineStore } from "pinia"
import { createPinia } from "pinia"
import { ref } from 'vue'
export const pinia = createPinia()
export const indexStore = defineStore('indexStore', () => {
    const isGetterRoute = ref(true)

    const changeGetterRoute = (value: boolean) => {
        isGetterRoute.value = value
    }

    return {
        isGetterRoute,
        changeGetterRoute
    }
},
    {
        persist: true
    }
)